package com.acoffee.service.impl;

import com.acoffee.mapper.UserMapper;
import com.acoffee.pojo.User;
import com.acoffee.service.UserService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author acoffee
 * @create 2021-11-25 16:24
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    UserMapper userMapper;


    @Override
    public User queryOne(int id) {
        User user = userMapper.queryOne(id);
        return user;
    }
}
